package inutan.game.entity.prop;

import org.ricks.common.utils.TimeUtils;
import org.ricks.orm.BaseLongIDEntity;
import org.ricks.orm.anno.Column;
import org.ricks.orm.anno.Table;
import org.ricks.orm.repository.MultiCacheRepository;

@Table(name = "game_base_item_info", repository = MultiCacheRepository.class)
public class BaseItemInfo extends BaseLongIDEntity<BaseItemInfo> {

    @Column(columnName = "item_type")
    private int itemType;
    @Column(columnName = "item_id")
    private int itemId;
    @Column
    private int count;
    @Column(columnName = "create_time")
    private long createTime = TimeUtils.now();

    public BaseItemInfo() {
    }

    public BaseItemInfo(int itemType, int itemId, int count) {
        this.itemType = itemType;
        this.itemId = itemId;
        this.count = count;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getItemType() {
        return itemType;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }
}
